package com.yiwise.common;

public enum CommonErrorCode {
    SUCCESS(200, "执行成功"),
    UNKNOWN_ERROR(500, "系统未知错误");

    /**
     * 错误码
     */
    private Integer code;
    /**
     * 错误描述
     */
    private String desc;

    CommonErrorCode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}